Optimal. Leaf size=88 \[ \frac {d^3 x^2}{2 b^2}+\frac {(b c-a d)^3}{2 a b^3 \left (a+b x^2\right )}+\frac {c^3 \log (x)}{a^2}-\frac {(b c-a d)^2 (b c+2 a d) \log \left (a+b x^2\right )}{2 a^2 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {457, 90}
\begin {gather*} -\frac {(b c-a d)^2 (2 a d+b c) \log \left (a+b x^2\right )}{2 a^2 b^3}+\frac {c^3 \log (x)}{a^2}+\frac {(b c-a d)^3}{2 a b^3 \left (a+b x^2\right )}+\frac {d^3 x^2}{2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 90
Rule 457
Rubi steps
\begin {align*} \int \frac {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(c+d x)^3}{x (a+b x)^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {d^3}{b^2}+\frac {c^3}{a^2 x}+\frac {(-b c+a d)^3}{a b^2 (a+b x)^2}-\frac {(-b c+a d)^2 (b c+2 a d)}{a^2 b^2 (a+b x)}\right ) \, dx,x,x^2\right )\\ &=\frac {d^3 x^2}{2 b^2}+\frac {(b c-a d)^3}{2 a b^3 \left (a+b x^2\right )}+\frac {c^3 \log (x)}{a^2}-\frac {(b c-a d)^2 (b c+2 a d) \log \left (a+b x^2\right )}{2 a^2 b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 111, normalized size = 1.26 \begin {gather*} \frac {2 c^3 \log (x)+\frac {\frac {a \left (b^3 c^3-a^3 d^3+a^2 b d^2 \left (3 c+d x^2\right )+a b^2 \left (-3 c^2 d+d^3 x^4\right )\right )}{a+b x^2}-(b c-a d)^2 (b c+2 a d) \log \left (a+b x^2\right )}{b^3}}{2 a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 94, normalized size = 1.07
method | result | size |
default | \(\frac {d^{3} x^{2}}{2 b^{2}}-\frac {\left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right ) \left (\frac {\left (2 a d +b c \right ) \ln \left (b \,x^{2}+a \right )}{b}+\frac {a \left (a d -b c \right )}{b \left (b \,x^{2}+a \right )}\right )}{2 a^{2} b^{2}}+\frac {c^{3} \ln \left (x \right )}{a^{2}}\) | \(94\) |
norman | \(\frac {\frac {d^{3} x^{4}}{2 b}-\frac {2 a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}}{2 a \,b^{3}}}{b \,x^{2}+a}+\frac {c^{3} \ln \left (x \right )}{a^{2}}-\frac {\left (2 a^{3} d^{3}-3 a^{2} b c \,d^{2}+b^{3} c^{3}\right ) \ln \left (b \,x^{2}+a \right )}{2 a^{2} b^{3}}\) | \(120\) |
risch | \(\frac {d^{3} x^{2}}{2 b^{2}}-\frac {a^{2} d^{3}}{2 b^{3} \left (b \,x^{2}+a \right )}+\frac {3 a c \,d^{2}}{2 b^{2} \left (b \,x^{2}+a \right )}-\frac {3 c^{2} d}{2 b \left (b \,x^{2}+a \right )}+\frac {c^{3}}{2 a \left (b \,x^{2}+a \right )}+\frac {c^{3} \ln \left (x \right )}{a^{2}}-\frac {a \ln \left (b \,x^{2}+a \right ) d^{3}}{b^{3}}+\frac {3 \ln \left (b \,x^{2}+a \right ) c \,d^{2}}{2 b^{2}}-\frac {\ln \left (b \,x^{2}+a \right ) c^{3}}{2 a^{2}}\) | \(146\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 122, normalized size = 1.39 \begin {gather*} \frac {d^{3} x^{2}}{2 \, b^{2}} + \frac {c^{3} \log \left (x^{2}\right )}{2 \, a^{2}} + \frac {b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}}{2 \, {\left (a b^{4} x^{2} + a^{2} b^{3}\right )}} - \frac {{\left (b^{3} c^{3} - 3 \, a^{2} b c d^{2} + 2 \, a^{3} d^{3}\right )} \log \left (b x^{2} + a\right )}{2 \, a^{2} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 178 vs.
\(2 (82) = 164\).
time = 1.40, size = 178, normalized size = 2.02 \begin {gather*} \frac {a^{2} b^{2} d^{3} x^{4} + a^{3} b d^{3} x^{2} + a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d + 3 \, a^{3} b c d^{2} - a^{4} d^{3} - {\left (a b^{3} c^{3} - 3 \, a^{3} b c d^{2} + 2 \, a^{4} d^{3} + {\left (b^{4} c^{3} - 3 \, a^{2} b^{2} c d^{2} + 2 \, a^{3} b d^{3}\right )} x^{2}\right )} \log \left (b x^{2} + a\right ) + 2 \, {\left (b^{4} c^{3} x^{2} + a b^{3} c^{3}\right )} \log \left (x\right )}{2 \, {\left (a^{2} b^{4} x^{2} + a^{3} b^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.49, size = 110, normalized size = 1.25 \begin {gather*} \frac {- a^{3} d^{3} + 3 a^{2} b c d^{2} - 3 a b^{2} c^{2} d + b^{3} c^{3}}{2 a^{2} b^{3} + 2 a b^{4} x^{2}} + \frac {d^{3} x^{2}}{2 b^{2}} + \frac {c^{3} \log {\left (x \right )}}{a^{2}} - \frac {\left (a d - b c\right )^{2} \cdot \left (2 a d + b c\right ) \log {\left (\frac {a}{b} + x^{2} \right )}}{2 a^{2} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.52, size = 150, normalized size = 1.70 \begin {gather*} \frac {d^{3} x^{2}}{2 \, b^{2}} + \frac {c^{3} \log \left (x^{2}\right )}{2 \, a^{2}} - \frac {{\left (b^{3} c^{3} - 3 \, a^{2} b c d^{2} + 2 \, a^{3} d^{3}\right )} \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, a^{2} b^{3}} + \frac {b^{4} c^{3} x^{2} - 3 \, a^{2} b^{2} c d^{2} x^{2} + 2 \, a^{3} b d^{3} x^{2} + 2 \, a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d + a^{4} d^{3}}{2 \, {\left (b x^{2} + a\right )} a^{2} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 122, normalized size = 1.39 \begin {gather*} \frac {d^3\,x^2}{2\,b^2}+\frac {c^3\,\ln \left (x\right )}{a^2}-\frac {\ln \left (b\,x^2+a\right )\,\left (2\,a^3\,d^3-3\,a^2\,b\,c\,d^2+b^3\,c^3\right )}{2\,a^2\,b^3}-\frac {a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3}{2\,a\,b\,\left (b^3\,x^2+a\,b^2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________